package com.ramble.userservice.domain.common.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "公共 api")
@RestController
@RequestMapping("/common")
public class CommonController {

    @Value("${server.port}")
    private String port;

    @ApiOperation(value = "哈喽", notes = "哈喽")
    @GetMapping("/hello")
    public String hello() {
        return "Hello,I am UserService /common/hello !" + port;
    }
}

